package com.yupi.yuojbackendjudgeservice.judge.codesanbox.impl;



/**
 * @Author FengHuan Wang
 * @Date 2025/3/9 9:47
 * @Version 1.0
 */

import com.yupi.yuojbackendmodel.codesanbox.ExecuteCodeRequest;
import com.yupi.yuojbackendmodel.codesanbox.ExecuteCodeResponse;
import com.yupi.yuojbackendjudgeservice.judge.codesanbox.CodeSanBox;

/**
 * 示例代码沙箱
 */
public class ExampleSanBox implements CodeSanBox {
    @Override
    public ExecuteCodeResponse executeCode(ExecuteCodeRequest executeCodeRequest) {

        ExecuteCodeResponse executeCodeResponse = ExecuteCodeResponse.builder()
                .outputList(executeCodeRequest.getInputList())
                .build();
        return executeCodeResponse;
    }
}
